package com.example.yin.dao;

import com.example.yin.domain.ListSong;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ListSongMapper {

    /*user module*/
    int deleteByPrimaryKey(Integer id);
    int insert(ListSong record);
    int insertSelective(ListSong record);
    ListSong selectById(@Param("id") Integer userId, @Param("songId") Integer songId, @Param("songListId") Integer songListId);
    int updateByPrimaryKey(ListSong record);
    int updateByPrimaryKeySelective(ListSong record);
    List<ListSong> allSongs(Integer id);//返回歌单下所有歌曲id


    /*admin module*/
    int addListSong(ListSong record);

    int deleteListSong(Integer id);

    List<ListSong> allListSong();

    List<ListSong> listSongOfSongId(Integer songId);

    ListSong selectBySongId(Integer songId);

    int updateListSongMsg(ListSong listSong);
}
